<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
//$url = JURI::root().'/components/com_retailshop/media/';
$url = JURI::root().'/images/com_retailshop/';

//$url = $this->baseUrl();
?>
<?php foreach($this->items as $i => $item): ?>
	<?php 		
		$temp = explode('/',$item->image_url);		
		$img = $temp[count($temp)-1];	
	?>
	<tr class="row<?php echo $i % 2; ?>">
		<td>
			<?php echo $item->id; ?>
		</td>
		<td>
			<?php echo JHtml::_('grid.id', $i, $item->id); ?>
		</td>
		<td>
			<?php echo $item->title; ?>
		</td>
		<td>
			<img src="<?php echo $url.$img;  ?>" style="height: 130px" />			
		</td>
	</tr>
<?php endforeach; ?>
